package cdu.javaendwork.util.pageHelp;

public class PageInfo {
    private int pageIndex = 1;
    private int pageSize = 4;
    private int sumCount = 0;
    private boolean isNext = false;
    private boolean isLast = false;

    @Override
    public String toString() {
        return "PageInfo{" +
                "pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                ", sumCount=" + sumCount +
                ", isNext=" + isNext +
                ", isLast=" + isLast +
                '}';
    }

    public PageInfo(){};

    public boolean getIsLast() {
        return isLast;
    }

    public void setIsLast(boolean last) {
        isLast = last;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getSumCount() {
        return sumCount;
    }

    public void setSumCount(int sumCount) {
        this.sumCount = sumCount;
    }

    public boolean getIsNext() {
        return isNext;
    }

    public void setIsNext(boolean next) {
        isNext = next;
    }


}
